function test(a,b){
    console.log(b)
    return {
        test:function(c){
            return test(b,c)
        }
    }
}
let TextA = test(0)
TextA.test(2)
TextA.test(4)
TextA.test(8)

let TextB = test('good').test('bad')

TextB.test('cccc')